<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="./">
<head>
  <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>pyokx.okx_market_maker.position_management_service.model.Account &mdash; AntBot 0.0.1 documentation</title>
      <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
      <link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
      <link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=eafc0fe6" />

  
  <!--[if lt IE 9]>
    <script src="_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
        <script src="_static/jquery.js?v=5d32c60e"></script>
        <script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
        <script src="_static/documentation_options.js?v=d45e8c67"></script>
        <script src="_static/doctools.js?v=888ff710"></script>
        <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="_static/js/theme.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition" href="pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition.html" />
    <link rel="prev" title="pyokx.okx_market_maker.position_management_service.WssPositionManagementService" href="pyokx.okx_market_maker.position_management_service.WssPositionManagementService.html" /> 
</head>

<body class="wy-body-for-nav"> 
  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >

          
          
          <a href="index.html" class="icon icon-home">
            AntBot
          </a>
              <div class="version">
                0.0.1
              </div>
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>
        </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="autodocumentation_python.html">autodocumentation_python</a></li>
<li class="toctree-l1"><a class="reference internal" href="firebase_tools.BaseClasses.html">firebase_tools.BaseClasses</a></li>
<li class="toctree-l1"><a class="reference internal" href="firebase_tools.FirestoreClient.html">firebase_tools.FirestoreClient</a></li>
<li class="toctree-l1"><a class="reference internal" href="firebase_tools.authenticate.html">firebase_tools.authenticate</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.dashboard.html">h2o_dashboard.dashboard</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.pages.documentation_page.html">h2o_dashboard.pages.documentation_page</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.pages.okx_dashbaord_page.okx_antbot_okx_premium_indicator_handler.html">h2o_dashboard.pages.okx_dashbaord_page.okx_antbot_okx_premium_indicator_handler</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.pages.okx_dashbaord_page.okx_dashboard_page.html">h2o_dashboard.pages.okx_dashbaord_page.okx_dashboard_page</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.pages.okx_streams.html">h2o_dashboard.pages.okx_streams</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.pages.overview_page.html">h2o_dashboard.pages.overview_page</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.util.html">h2o_dashboard.util</a></li>
<li class="toctree-l1"><a class="reference internal" href="h2o_dashboard.wave_auth.html">h2o_dashboard.wave_auth</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.Futures_Exchange_Client.html">pyokx.Futures_Exchange_Client</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.InstrumentSearcher.html">pyokx.InstrumentSearcher</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.data_structures.html">pyokx.data_structures</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Account.html">pyokx.low_rest_api.Account</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.BlockTrading.html">pyokx.low_rest_api.BlockTrading</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Convert.html">pyokx.low_rest_api.Convert</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.CopyTrading.html">pyokx.low_rest_api.CopyTrading</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Earning.html">pyokx.low_rest_api.Earning</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.FDBroker.html">pyokx.low_rest_api.FDBroker</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Funding.html">pyokx.low_rest_api.Funding</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Grid.html">pyokx.low_rest_api.Grid</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.MarketData.html">pyokx.low_rest_api.MarketData</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.NDBroker.html">pyokx.low_rest_api.NDBroker</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.PublicData.html">pyokx.low_rest_api.PublicData</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.SpreadTrading.html">pyokx.low_rest_api.SpreadTrading</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Status.html">pyokx.low_rest_api.Status</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.SubAccount.html">pyokx.low_rest_api.SubAccount</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.Trade.html">pyokx.low_rest_api.Trade</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.TradingData.html">pyokx.low_rest_api.TradingData</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.client.html">pyokx.low_rest_api.client</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.consts.html">pyokx.low_rest_api.consts</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.exceptions.html">pyokx.low_rest_api.exceptions</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.low_rest_api.utils.html">pyokx.low_rest_api.utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.market_data_service.WssMarketDataService.html">pyokx.okx_market_maker.market_data_service.WssMarketDataService</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.market_data_service.model.Instrument.html">pyokx.okx_market_maker.market_data_service.model.Instrument</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.market_data_service.model.MarkPx.html">pyokx.okx_market_maker.market_data_service.model.MarkPx</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.market_data_service.model.OrderBook.html">pyokx.okx_market_maker.market_data_service.model.OrderBook</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.market_data_service.model.Tickers.html">pyokx.okx_market_maker.market_data_service.model.Tickers</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.order_management_service.WssOrderManagementService.html">pyokx.okx_market_maker.order_management_service.WssOrderManagementService</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.order_management_service.model.Order.html">pyokx.okx_market_maker.order_management_service.model.Order</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.order_management_service.model.OrderRequest.html">pyokx.okx_market_maker.order_management_service.model.OrderRequest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.position_management_service.WssPositionManagementService.html">pyokx.okx_market_maker.position_management_service.WssPositionManagementService</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">pyokx.okx_market_maker.position_management_service.model.Account</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account"><code class="docutils literal notranslate"><span class="pre">Account</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.adj_eq"><code class="docutils literal notranslate"><span class="pre">Account.adj_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.details"><code class="docutils literal notranslate"><span class="pre">Account.details</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.from_dict"><code class="docutils literal notranslate"><span class="pre">Account.from_dict()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.get_account_details"><code class="docutils literal notranslate"><span class="pre">Account.get_account_details()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.imr"><code class="docutils literal notranslate"><span class="pre">Account.imr</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.init_from_ws_json_message"><code class="docutils literal notranslate"><span class="pre">Account.init_from_ws_json_message()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.iso_eq"><code class="docutils literal notranslate"><span class="pre">Account.iso_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.mgn_ratio"><code class="docutils literal notranslate"><span class="pre">Account.mgn_ratio</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.mmr"><code class="docutils literal notranslate"><span class="pre">Account.mmr</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.model_config"><code class="docutils literal notranslate"><span class="pre">Account.model_config</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.model_fields"><code class="docutils literal notranslate"><span class="pre">Account.model_fields</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.notional_usd"><code class="docutils literal notranslate"><span class="pre">Account.notional_usd</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.ord_frozen"><code class="docutils literal notranslate"><span class="pre">Account.ord_frozen</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.to_dict"><code class="docutils literal notranslate"><span class="pre">Account.to_dict()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.total_eq"><code class="docutils literal notranslate"><span class="pre">Account.total_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.u_time"><code class="docutils literal notranslate"><span class="pre">Account.u_time</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.update_from_ws_json_message"><code class="docutils literal notranslate"><span class="pre">Account.update_from_ws_json_message()</span></code></a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail"><code class="docutils literal notranslate"><span class="pre">AccountDetail</span></code></a><ul>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_bal"><code class="docutils literal notranslate"><span class="pre">AccountDetail.avail_bal</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_eq"><code class="docutils literal notranslate"><span class="pre">AccountDetail.avail_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cash_bal"><code class="docutils literal notranslate"><span class="pre">AccountDetail.cash_bal</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ccy"><code class="docutils literal notranslate"><span class="pre">AccountDetail.ccy</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.coin_usd_price"><code class="docutils literal notranslate"><span class="pre">AccountDetail.coin_usd_price</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cross_liability"><code class="docutils literal notranslate"><span class="pre">AccountDetail.cross_liability</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.dis_eq"><code class="docutils literal notranslate"><span class="pre">AccountDetail.dis_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq"><code class="docutils literal notranslate"><span class="pre">AccountDetail.eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq_usd"><code class="docutils literal notranslate"><span class="pre">AccountDetail.eq_usd</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.frozen_bal"><code class="docutils literal notranslate"><span class="pre">AccountDetail.frozen_bal</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.init_from_ws_json_message"><code class="docutils literal notranslate"><span class="pre">AccountDetail.init_from_ws_json_message()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.interest"><code class="docutils literal notranslate"><span class="pre">AccountDetail.interest</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_eq"><code class="docutils literal notranslate"><span class="pre">AccountDetail.iso_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_liability"><code class="docutils literal notranslate"><span class="pre">AccountDetail.iso_liability</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_upl"><code class="docutils literal notranslate"><span class="pre">AccountDetail.iso_upl</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.liability"><code class="docutils literal notranslate"><span class="pre">AccountDetail.liability</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.max_loan"><code class="docutils literal notranslate"><span class="pre">AccountDetail.max_loan</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.notional_lever"><code class="docutils literal notranslate"><span class="pre">AccountDetail.notional_lever</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ord_frozen"><code class="docutils literal notranslate"><span class="pre">AccountDetail.ord_frozen</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.spot_in_usd_amt"><code class="docutils literal notranslate"><span class="pre">AccountDetail.spot_in_usd_amt</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.strategy_eq"><code class="docutils literal notranslate"><span class="pre">AccountDetail.strategy_eq</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.to_dict"><code class="docutils literal notranslate"><span class="pre">AccountDetail.to_dict()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.u_time"><code class="docutils literal notranslate"><span class="pre">AccountDetail.u_time</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl"><code class="docutils literal notranslate"><span class="pre">AccountDetail.upl</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl_liability"><code class="docutils literal notranslate"><span class="pre">AccountDetail.upl_liability</span></code></a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition.html">pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.position_management_service.model.Positions.html">pyokx.okx_market_maker.position_management_service.model.Positions</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.run_sample_market_maker.html">pyokx.okx_market_maker.run_sample_market_maker</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.settings.html">pyokx.okx_market_maker.settings</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.BaseStrategy.html">pyokx.okx_market_maker.strategy.BaseStrategy</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.SampleMM.html">pyokx.okx_market_maker.strategy.SampleMM</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.model.StrategyMeasurement.html">pyokx.okx_market_maker.strategy.model.StrategyMeasurement</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.model.StrategyOrder.html">pyokx.okx_market_maker.strategy.model.StrategyOrder</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.params.ParamsLoader.html">pyokx.okx_market_maker.strategy.params.ParamsLoader</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.risk.RiskCalculator.html">pyokx.okx_market_maker.strategy.risk.RiskCalculator</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.strategy.risk.RiskSnapshot.html">pyokx.okx_market_maker.strategy.risk.RiskSnapshot</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.tests.test_strategy.html">pyokx.okx_market_maker.tests.test_strategy</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.utils.InstrumentUtil.html">pyokx.okx_market_maker.utils.InstrumentUtil</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.utils.OkxEnum.html">pyokx.okx_market_maker.utils.OkxEnum</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.utils.TdModeUtil.html">pyokx.okx_market_maker.utils.TdModeUtil</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.okx_market_maker.utils.WsOrderUtil.html">pyokx.okx_market_maker.utils.WsOrderUtil</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.redis_structured_reports.html">pyokx.redis_structured_reports</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.redis_structured_streams.html">pyokx.redis_structured_streams</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.rest_handling.html">pyokx.rest_handling</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.rest_messages_service.html">pyokx.rest_messages_service</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.strategy_handling.html">pyokx.strategy_handling</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.AccountTest.html">pyokx.test.AccountTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.BlockTradingTest.html">pyokx.test.BlockTradingTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.BrokerTest.html">pyokx.test.BrokerTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.ConvertTest.html">pyokx.test.ConvertTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.CopyTradingTest.html">pyokx.test.CopyTradingTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.EarningTest.html">pyokx.test.EarningTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.FundingTest.html">pyokx.test.FundingTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.GridTest.html">pyokx.test.GridTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.MarketTest.html">pyokx.test.MarketTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.PublicDataTest.html">pyokx.test.PublicDataTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.SpreadTest.html">pyokx.test.SpreadTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.StackingTest.html">pyokx.test.StackingTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.SubAccountTest.html">pyokx.test.SubAccountTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.TradeTest.html">pyokx.test.TradeTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.TradingDataTest.html">pyokx.test.TradingDataTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.WsPrivateAsyncTest.html">pyokx.test.WsPrivateAsyncTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.test.WsPublicAsyncTest.html">pyokx.test.WsPublicAsyncTest</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.websocket_handling.html">pyokx.websocket_handling</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.ws_clients.WebSocketFactory.html">pyokx.ws_clients.WebSocketFactory</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.ws_clients.WsPprivateAsync.html">pyokx.ws_clients.WsPprivateAsync</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.ws_clients.WsPublicAsync.html">pyokx.ws_clients.WsPublicAsync</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.ws_clients.WsUtils.html">pyokx.ws_clients.WsUtils</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyokx.ws_data_structures.html">pyokx.ws_data_structures</a></li>
<li class="toctree-l1"><a class="reference internal" href="redis_tools.config.html">redis_tools.config</a></li>
<li class="toctree-l1"><a class="reference internal" href="redis_tools.consumers.html">redis_tools.consumers</a></li>
<li class="toctree-l1"><a class="reference internal" href="redis_tools.utils.html">redis_tools.utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="rest_app.html">rest_app</a></li>
<li class="toctree-l1"><a class="reference internal" href="routers.api_keys.html">routers.api_keys</a></li>
<li class="toctree-l1"><a class="reference internal" href="routers.login.html">routers.login</a></li>
<li class="toctree-l1"><a class="reference internal" href="routers.okx.html">routers.okx</a></li>
<li class="toctree-l1"><a class="reference internal" href="routers.okx_authentication.html">routers.okx_authentication</a></li>
<li class="toctree-l1"><a class="reference internal" href="routers.signup.html">routers.signup</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.command_execution.html">shared.command_execution</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.config.html">shared.config</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.configuration_parser.html">shared.configuration_parser</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.data_processing_utils.html">shared.data_processing_utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.file_directory_ops.html">shared.file_directory_ops</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.logging.html">shared.logging</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.string_dict_utils.html">shared.string_dict_utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="shared.tmp_shared.html">shared.tmp_shared</a></li>
<li class="toctree-l1"><a class="reference internal" href="tradingview_tools.tradingview_widgets.html">tradingview_tools.tradingview_widgets</a></li>
<li class="toctree-l1"><a class="reference internal" href="websocket_app.html">websocket_app</a></li>
</ul>

        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">AntBot</a>
      </nav>

      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">pyokx.okx_market_maker.position_management_service.model.Account</li>
      <li class="wy-breadcrumbs-aside">
            <a href="_sources/pyokx.okx_market_maker.position_management_service.model.Account.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
             
  <section id="module-pyokx.okx_market_maker.position_management_service.model.Account">
<span id="pyokx-okx-market-maker-position-management-service-model-account"></span><h1>pyokx.okx_market_maker.position_management_service.model.Account<a class="headerlink" href="#module-pyokx.okx_market_maker.position_management_service.model.Account" title="Link to this heading"></a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyokx.okx_market_maker.position_management_service.model.Account.</span></span><span class="sig-name descname"><span class="pre">Account</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">u_time</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">total_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iso_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">adj_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ord_frozen</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">imr</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mmr</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">notional_usd</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mgn_ratio</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">details</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail" title="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail"><span class="pre">AccountDetail</span></a><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">BaseModel</span></code></p>
<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.adj_eq">
<span class="sig-name descname"><span class="pre">adj_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.adj_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.details">
<span class="sig-name descname"><span class="pre">details</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail" title="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail"><span class="pre">AccountDetail</span></a><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.details" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.from_dict">
<span class="sig-name descname"><span class="pre">from_dict</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">account_dict</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account.from_dict"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.from_dict" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.get_account_details">
<span class="sig-name descname"><span class="pre">get_account_details</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><a class="reference internal" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail" title="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail"><span class="pre">AccountDetail</span></a><span class="p"><span class="pre">]</span></span></span></span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account.get_account_details"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.get_account_details" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.imr">
<span class="sig-name descname"><span class="pre">imr</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.imr" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.init_from_ws_json_message">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">init_from_ws_json_message</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">json_response</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account.init_from_ws_json_message"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.init_from_ws_json_message" title="Link to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>json_response</strong> – <dl>
<dt>{</dt><dd><dl class="simple">
<dt>“arg”: {</dt><dd><p>“channel”: “account”,
“uid”: “77982378738415879”</p>
</dd>
</dl>
<p>},
“data”: [</p>
<blockquote>
<div><dl>
<dt>{</dt><dd><p>“uTime”: “1614846244194”,
“totalEq”: “91884.8502560037982063”,
“adjEq”: “91884.8502560037982063”,
“isoEq”: “0”,
“ordFroz”: “0”,
“imr”: “0”,
“mmr”: “0”,
“notionalUsd”: “”,
“mgnRatio”: “100000”,
“details”: [{</p>
<blockquote>
<div><blockquote>
<div><p>”availBal”: “”,
“availEq”: “1”,
“ccy”: “BTC”,
“cashBal”: “1”,
“uTime”: “1617279471503”,
“disEq”: “50559.01”,
“eq”: “1”,
“eqUsd”: “45078.3790756226851775”,
“frozenBal”: “0”,
“interest”: “0”,
“isoEq”: “0”,
“liab”: “0”,
“maxLoan”: “”,
“mgnRatio”: “”,
“notionalLever”: “0.0022195262185864”,
“ordFrozen”: “0”,
“upl”: “0”,
“uplLiab”: “0”,
“crossLiab”: “0”,
“isoLiab”: “0”,
“coinUsdPrice”: “60000”,
“stgyEq”:”0”,
“spotInUseAmt”:””,
“isoUpl”:””</p>
</div></blockquote>
<p>}</p>
</div></blockquote>
<p>]</p>
</dd>
</dl>
<p>}</p>
</div></blockquote>
<p>]</p>
</dd>
</dl>
</p>
</dd>
</dl>
<p>}
:return:</p>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.iso_eq">
<span class="sig-name descname"><span class="pre">iso_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.iso_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.mgn_ratio">
<span class="sig-name descname"><span class="pre">mgn_ratio</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.mgn_ratio" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.mmr">
<span class="sig-name descname"><span class="pre">mmr</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.mmr" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.model_config">
<span class="sig-name descname"><span class="pre">model_config</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">ClassVar</span><span class="p"><span class="pre">[</span></span><span class="pre">ConfigDict</span><span class="p"><span class="pre">]</span></span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">{}</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.model_config" title="Link to this definition"></a></dt>
<dd><p>Configuration for the model, should be a dictionary conforming to [<cite>ConfigDict</cite>][pydantic.config.ConfigDict].</p>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.model_fields">
<span class="sig-name descname"><span class="pre">model_fields</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">ClassVar</span><span class="p"><span class="pre">[</span></span><span class="pre">dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">FieldInfo</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">{'adj_eq':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'details':</span> <span class="pre">FieldInfo(annotation=Dict[str,</span> <span class="pre">AccountDetail],</span> <span class="pre">required=False,</span> <span class="pre">default_factory=&lt;lambda&gt;,</span> <span class="pre">init_var=False,</span> <span class="pre">kw_only=&lt;dataclasses._MISSING_TYPE</span> <span class="pre">object&gt;),</span> <span class="pre">'imr':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'iso_eq':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'mgn_ratio':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'mmr':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'notional_usd':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'ord_frozen':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'total_eq':</span> <span class="pre">FieldInfo(annotation=float,</span> <span class="pre">required=False,</span> <span class="pre">default=0),</span> <span class="pre">'u_time':</span> <span class="pre">FieldInfo(annotation=int,</span> <span class="pre">required=False,</span> <span class="pre">default=0)}</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.model_fields" title="Link to this definition"></a></dt>
<dd><p>Metadata about the fields defined on the model,
mapping of field names to [<cite>FieldInfo</cite>][pydantic.fields.FieldInfo].</p>
<p>This replaces <cite>Model.__fields__</cite> from Pydantic V1.</p>
</dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.notional_usd">
<span class="sig-name descname"><span class="pre">notional_usd</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.notional_usd" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.ord_frozen">
<span class="sig-name descname"><span class="pre">ord_frozen</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.ord_frozen" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.to_dict">
<span class="sig-name descname"><span class="pre">to_dict</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account.to_dict"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.to_dict" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.total_eq">
<span class="sig-name descname"><span class="pre">total_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.total_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.u_time">
<span class="sig-name descname"><span class="pre">u_time</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.u_time" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.Account.update_from_ws_json_message">
<span class="sig-name descname"><span class="pre">update_from_ws_json_message</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">json_response</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#Account.update_from_ws_json_message"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account.update_from_ws_json_message" title="Link to this definition"></a></dt>
<dd><p>Data pushed in regular interval: Only currencies with non-zero balance will be pushed.
Definition of non-zero balance: any value of eq, availEq, availBql parameters is not 0.
When the value of eq, availEq and availBql parameters are all zero, drop the detail of that ccy from Account
:param json_response: same as init_from_ws_json_message
:return:</p>
</dd></dl>

</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyokx.okx_market_maker.position_management_service.model.Account.</span></span><span class="sig-name descname"><span class="pre">AccountDetail</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">avail_bal</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">avail_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ccy</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">''</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cash_bal</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">u_time</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dis_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eq_usd</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">frozen_bal</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">interest</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iso_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">liability</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_loan</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">notional_lever</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ord_frozen</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">upl</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">upl_liability</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cross_liability</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iso_liability</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">coin_usd_price</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">strategy_eq</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">spot_in_usd_amt</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iso_upl</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#AccountDetail"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_bal">
<span class="sig-name descname"><span class="pre">avail_bal</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_bal" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_eq">
<span class="sig-name descname"><span class="pre">avail_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.avail_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cash_bal">
<span class="sig-name descname"><span class="pre">cash_bal</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cash_bal" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ccy">
<span class="sig-name descname"><span class="pre">ccy</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">''</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ccy" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.coin_usd_price">
<span class="sig-name descname"><span class="pre">coin_usd_price</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.coin_usd_price" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cross_liability">
<span class="sig-name descname"><span class="pre">cross_liability</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.cross_liability" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.dis_eq">
<span class="sig-name descname"><span class="pre">dis_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.dis_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq">
<span class="sig-name descname"><span class="pre">eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq_usd">
<span class="sig-name descname"><span class="pre">eq_usd</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.eq_usd" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.frozen_bal">
<span class="sig-name descname"><span class="pre">frozen_bal</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.frozen_bal" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.init_from_ws_json_message">
<em class="property"><span class="pre">classmethod</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">init_from_ws_json_message</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">json_response</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#AccountDetail.init_from_ws_json_message"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.init_from_ws_json_message" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.interest">
<span class="sig-name descname"><span class="pre">interest</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.interest" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_eq">
<span class="sig-name descname"><span class="pre">iso_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_liability">
<span class="sig-name descname"><span class="pre">iso_liability</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_liability" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_upl">
<span class="sig-name descname"><span class="pre">iso_upl</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.iso_upl" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.liability">
<span class="sig-name descname"><span class="pre">liability</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.liability" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.max_loan">
<span class="sig-name descname"><span class="pre">max_loan</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.max_loan" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.notional_lever">
<span class="sig-name descname"><span class="pre">notional_lever</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.notional_lever" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ord_frozen">
<span class="sig-name descname"><span class="pre">ord_frozen</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.ord_frozen" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.spot_in_usd_amt">
<span class="sig-name descname"><span class="pre">spot_in_usd_amt</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.spot_in_usd_amt" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.strategy_eq">
<span class="sig-name descname"><span class="pre">strategy_eq</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.strategy_eq" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.to_dict">
<span class="sig-name descname"><span class="pre">to_dict</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pyokx/okx_market_maker/position_management_service/model/Account.html#AccountDetail.to_dict"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.to_dict" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.u_time">
<span class="sig-name descname"><span class="pre">u_time</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.u_time" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl">
<span class="sig-name descname"><span class="pre">upl</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl_liability">
<span class="sig-name descname"><span class="pre">upl_liability</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail.upl_liability" title="Link to this definition"></a></dt>
<dd></dd></dl>

</dd></dl>

<div class="graphviz"><img src="_images/inheritance-75c743620e69db6543ca04738a054b938e2968e8.png" alt="Inheritance diagram of pyokx.okx_market_maker.position_management_service.model.Account" usemap="#inheritance480cf6dfd0" class="inheritance graphviz" /></div>
<map id="inheritance480cf6dfd0" name="inheritance480cf6dfd0">
<area shape="rect" id="node1" href="#pyokx.okx_market_maker.position_management_service.model.Account.Account" target="_top" title="Account" alt="" coords="167,55,241,80"/>
<area shape="rect" id="node3" href="#pyokx.okx_market_maker.position_management_service.model.Account.AccountDetail" target="_top" title="AccountDetail(avail_bal: float = 0, avail_eq: float = 0, ccy: str = &#39;&#39;, cash_bal: float = 0, u_time: int = 0, dis_eq: float = 0, eq: float = 0, eq_usd: float = 0, frozen_bal: float = 0, interest: float = 0, iso_eq: float = 0, liability: float = 0, max_loan: float = 0, notional_lever: float = 0, ord_frozen: float = 0, upl: float = 0, upl_liability: float = 0, cross_liability: float = 0, iso_liability: float = 0, coin_usd_price: float = 0, strategy_eq: float = 0, spot_in_usd_amt: float = 0, iso_upl: float = 0)" alt="" coords="5,5,119,31"/>
</map></section>


           </div>
          </div>
          <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
        <a href="pyokx.okx_market_maker.position_management_service.WssPositionManagementService.html" class="btn btn-neutral float-left" title="pyokx.okx_market_maker.position_management_service.WssPositionManagementService" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
        <a href="pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition.html" class="btn btn-neutral float-right" title="pyokx.okx_market_maker.position_management_service.model.BalanceAndPosition" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2024, Ruben Fernandez Carbon.</p>
  </div>

  Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    provided by <a href="https://readthedocs.org">Read the Docs</a>.
   

</footer>
        </div>
      </div>
    </section>
  </div>
  <script>
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>